Repository navigation
Conversation
Bundle the GA4GH IO Schema Profile 0.3.0 (meta-schema and vocabularies, pinned at ga4gh-io-schema 2c3dc49, the pin of #609) and check IO schemas offline: $schema names the profile, the meta-schema passes with format assertion, and every $ref resolves within the document. A valid schema comes with a validator of its input values, whose errors carry JSON Pointers, the failed keyword and a message. The validator is @hyperjump/json-schema (no 'unsafe-eval' needed), behind the internal IoSchemaValidator interface, so that the component owner can swap it (open question 2 of #444). scripts/sync-io-schema.mjs copies the profile, its conformance suite, file-value vectors and example schemas from a checkout at the pin. The tests run the whole conformance suite and the examples offline. The test runner now takes the browser builds of dependencies and serves the CommonJS dependencies of hyperjump (content-type, idn-hostname, punycode) as modules with their named exports. Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move the URI check of run-output into a shared module (src/io-schema/files.ts) and add the input rules of the profile: paths only where the file reference has no `schemes`, no `..` segments (also percent-encoded), no leading `~` or two slashes, absolute paths only where allowed, and `schemes` narrowing the deployment's allow-list. run-output keeps its behaviour and re-exports the shared helpers. The tests run the profile's file-value vectors (33 cases). Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add one renderer for the profile's Markdown subset, on markdown-it: raw HTML as escaped text, images as their alt text, links only with an allowed scheme (else their text; they open in a new window without referrer), and of GFM only tables, strikethrough and autolinks (www. and bare URLs, not bare host names). It produces the profile's example HTML exactly. Its output is the only HTML that goes through unsafeHTML. Descriptions stay plain text by default, as the proposal's default for open question 4 of #444: setDescriptionFormat("markdown") switches the components to Markdown. run-output takes its descriptions from the same template, unchanged by default. Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add ecc-client-ga4gh-wes-io-form. It checks the IO schema offline,
describes its inputs as field descriptors (schema -> descriptors ->
controls) and renders them with the design components by type, format
and enum: text, number, checkbox, select, date, time, date-time,
groups for objects and JSON for the rest. Defaults are prefilled,
unset inputs are left out, and every change emits
ecc-io-form-changed with {values, valid, errors}.
Part of #444.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review findings on the schema checks: - An embedded $id that collides with a schema in use (e.g. the profile) is refused without unregistering that schema; the profile is registered again if something removed it; checks never reject. - Documents are registered under their own absolute $id, so references by it resolve; embedded $ids are resolved against their resource, so error locations point into embedded resources. - References in outputs and top-level $defs must resolve, too. - Checks run one after the other (hyperjump's registry is global). Also export the checks, the validator switch and the description format from @elixir-cloud/wes/utils, and document them. Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Choose controls by x-ga4gh-ui-widget where the widget fits the schema that carries it (UI widgets, Rules): textarea, slider with bounds and step, multiple choice for arrays with items.enum, tags one per line, typeahead with examples as suggestions, colour picker. Radio and switch render as dropdown and checkbox, as the profile allows. Misfit, custom and viewer widgets fall back to the type. Nullable inputs get a null toggle. Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review findings on the form: - A schema that refers to itself twice per level expanded to 2^33 fields and froze the tab: references already on the path become JSON inputs, and groups stop expanding at 1000 fields. - References inside embedded resources ($id) aren't followed, as they resolve elsewhere; such inputs are edited as JSON. - Inputs named constructor or prototype can be set; only __proto__ is ignored. Missing required inputs with such names show at the input. - Control ids are unique per pointer. Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
File references (x-ga4gh-file, also as a branch of anyOf/oneOf such as CWL's [File, string]) get a text field for a URI or relative path. Values are checked by the profile's file rules against allowedSchemes, narrowed by the reference's schemes, and make the form invalid when refused; refused defaults aren't prefilled. Changing allowedSchemes re-validates. Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
x-ga4gh-error-message replaces the validator's messages of the failures at the value its schema applies to, once per location; the outermost message wins (the input's own over its $ref target's). Hidden inputs go under a collapsed Advanced section, except inputs that must be set and inputs whose values fail. Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Arrays with items get a list editor: a field per item (objects, file references and widgets included), Add and Remove within minItems and maxItems; a cleared item stays in the list, empty. Unions (anyOf or oneOf without a type) get a branch chooser, by title or type, that renders the chosen branch; the branch is guessed from the value's type at first. Other arrays (prefixItems) stay JSON. Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Branches of allOf with properties (after a local $ref), such as nf-core's parameter groups, become sections of their object with the branch's title and description; their required lists apply to their fields, and their defaults are prefilled. The docs demo gets the profile's nf-core/fetchngs schema. Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quality review: aria-labels on selects, multi-selects, checkboxes and the null toggle; list buttons name their list; suggestions form a labelled group; the slider value is announced. Tests for the allowed-schemes attribute and for new values. Docs: slider steps, null toggle, required marker, attribute format. Part of #444. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adversarial review of S5-S9: - File reference values are checked by walking the values along the inputs schema, not the controls: union branches the form doesn't show, tags, prefixItems, patternProperties and additionalProperties are covered too (high). - allOf sections stop at the field cap (exponential nesting by $ref). - Removing a list item moves the pointer-keyed state of later items. - Live fields are computed once per state; errors find their field by pointer instead of a scan. - A required list stays when its last item is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Second review round of the schema walk of file values: - In a union, a string that a branch without a file reference takes (type, const, enum, pattern) isn't checked as a file reference, so presets and free text next to a file branch stay valid. - The walk keeps the schema nodes seen per value location: linear in the schema size instead of exponential in branching references, with a node budget that fails closed. - Refused list defaults are removed last first, so later items don't shift into their place. - then/else, dependentSchemas, unevaluatedProperties/Items and contains are walked too. - Values nested deeper than 64 levels are refused instead of skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port the engine bindings of the GA4GH IO Schema Profile 0.3.0 (NFL, SMK, WDL, CWL) from the profile's reference implementation: toWorkflowParams() and buildRunRequest() check the schema, validate the values, check file references and translate the values; trs.ts builds the TRS workflow URL and finds the schema among a tool version's files. The sync script now also copies the wes-params, workflow-urls and trs-files test vectors, which the tests run. The validator gains an optional validateAt() for the subschemas whose validity decides which schemas apply (anyOf/oneOf branches, if, contains). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engine profiles turn the generic run request into one for a particular WES server, kept out of the builder. conquestEngineProfile sets the GitHub repository as workflow_url and adds revision and the main workflow path (main_script, snakefile or main_workflow_path) from the URL of the primary descriptor at a full commit SHA. Also declare SubschemaValidator and the optional validateAt() on IoSchemaCheck, which the previous commit used without the type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With ioSchema and trsToolVersion, ecc-client-ga4gh-wes-run-create shows the workflow's I/O form instead of the raw fields, says when the WES service doesn't run the workflow's type or version, and submits the request built by the engine bindings, adapted by an optional engine profile. The raw mode stays. The I/O form is loaded on demand: a static import broke the docs app's prerendering of the I/O form page. Export the builder, TRS helpers and engine profile from @elixir-cloud/wes/utils; document them; add a docs-app demo with a dry-run provider; add a changeset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Fail closed on $ref targets in or under embedded $id resources: they resolve their own references against their $id, so following the document could skip file reference checks. - Build workflow_params from entries, so a member named __proto__ stays a key. - Tighten the Conquest URL parser: no '.' or '..' owner or repository names, control characters, backslashes or segments starting with '-'. - Require engine parameters to be a JSON object in schema mode; load the I/O form with an error message if its chunk fails; build tags and attachments once. - Test decidingLocations() and validateAt(); export fewer internals; document the version fallback and the error text of schema mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wrap validateAt() failures for conditional subschemas behind a $ref into a non-schema location in a TranslationError, and refuse Unicode format and separator characters and whitespace-padded segments in Conquest descriptor paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port the output normaliser of profile 0.3.0 (ga4gh_io_schema.outputs) to TypeScript: normaliseOutputs() finds outputs by name, then by x-ga4gh-output-glob in the run's listing (cwltool, Toil, Cromwell, miniwdl, Conquest, Sapporo, WESkit shapes), turns reported paths into URIs of the output directory, checks listed entries, validates the result (whole object for COMPLETE, per output otherwise) and reports removed, ambiguous, unconverted, undeclared, unmatched and skipped entries. The validator gets an optional validateOutputs(). The sync script copies the wes-outputs vectors (same pin, 2c3dc49); all pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ecc-client-ga4gh-wes-run gains ioSchema, outputOptions, outputProvider and allowedSchemes. With a schema and a run that has ended, the Outputs tab shows the normalised outputs through ecc-client-ga4gh-wes-run-output, warns about partial and non-conformant outputs, names what the normaliser reports, and shows undeclared outputs and unmatched files without descriptions. Without a schema the raw view stays. The normaliser and run-output load on demand. Docs: Run outputs on the I/O Schemas page, the run page's new section and properties, a docs-app demo of the profile's demo workflow, and a changeset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- validateOutputs validates one output as the only member of the outputs object, so names with '#' no longer break checkIoSchema, and no extra subschemas are compiled - the run view passes the default allowed schemes when none are set, and resolves $ref and single branches of output schemas for display - values nested more than 64 levels are refused (unconverted) instead of overflowing the validator's stack; strings() is iterative - reuse encodeSegment from trs.ts; export outputProperties and displaySchema; FINAL_STATES from states.ts only - tests for validateOutputs, deep values, display schemas; docs on memoising outputOptions, running runs, embedded $id, the validator contract in the changeset Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Values nested too deeply land in unconverted too, so the notice no longer says their files can't be located. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lit maps the runId property to the attribute "runid", so the documented run-id attribute had no effect. It now maps to run-id, which the docs' HTML example already uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A second copy of the module (e.g. from a second bundle) made customElements.define throw. defineRunOutput() defines the element only in browsers and only if it isn't defined yet, as the service registry's services element does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WES 1.1 deprecates inline task_logs in favour of task_logs_url. The
provider gets optional listRunTasks() (GET /runs/{id}/tasks, by page)
and getLog() (service's fetch on its own origin, no credentials
elsewhere, HTTP(S) only). The run component lists tasks by page with
a "Load more tasks" button, shows task ID, system logs and the TES
task, fetches logs through getLog(), and hints at log values that
aren't URLs.
Closes #616
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#614 landed squashed (2254142); this branch carried its pre-squash commits. The tree is feat/io-schema plus this branch's own changes. Validator: the outputs schema is compiled once, as validateOutputs, through the anchor-aware location URIs of #614 (names with '#'), and the annotation-schema locations of #614 stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Guards the merge with #614: the outputs schema is compiled through the anchor-aware location URIs, so outputs whose names contain '#' and use a union validate as a whole and one by one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Split the run-id attribute into its own changeset and say that markup using the old runid attribute must switch to run-id. - Test defineRunOutput() with a spy on customElements.define. - Say in OutputsValidator what "declared" means (direct properties of outputs, as the profile requires) and which rules apply only to the whole object. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the run ID or provider changed while a getRunLog() request was pending and that request answered last, the run view showed the earlier run (and normalised its outputs). Each request now gets a number, and only the answer to the latest one is used. Found by Sourcery on #615. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
Clearing the run ID, or the provider and base URL, returned early without invalidating a pending getRunLog() request, so its answer still replaced the cleared view. These paths now invalidate it too. Found by the adversarial and quality reviews of #615. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
The Run page says that ioSchema, outputOptions, outputProvider and allowedSchemes have no attributes, what allowedSchemes defaults to, why the preview adds s3, and that run-id replaces runid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
A new provider with an empty run ID returned without invalidating a pending request of the old provider, and without the "no run ID" error. Found by the second adversarial review of #615. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
Brings this branch onto #615's head (b692f05), which already holds the squashed #613 and #614, so that the PR into feat/io-schema shows only the task list once #615 has merged. invalidateRunLog() of #615 now also resets the task list and cached logs, so a cleared run ID doesn't keep the tasks of the previous run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
Covers the merge resolution that makes invalidateRunLog() reset the task list and cached logs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
Reviewer's GuideData structuresDefine the WES 1.1 task and paginated response types, and update run logs to allow absent inline task logs and a task-list URL.
APIExtend the provider contract with optional task-listing and log-fetching methods, documenting their credential behavior.
Implement paginated task requests and origin-aware, HTTP(S)-only log fetching in the REST provider.
Uses of the APIUse the provider contract to load inline or paged tasks, handle retries and stale responses, and fetch logs only for open tasks.
ImplementationAdd log-value hints and render task metadata, system logs, and safe TES URI links.
Render task-list loading, empty, error, retry, and pagination states, and track task expansion for on-demand logs.
UIDocument the Tasks tab and provider methods, types, and credential guidance for task and log retrieval.
ConfigurationRecord the minor release note, including the task-listing feature and the migration and credential implications.
TestsVerify run task rendering, pagination, retries, TES links, log fetching, and stale-result handling.
Verify REST task pagination and log-fetching URL, credential, protocol, and error behavior.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
📖 58 files changed · 2 added · 56 modified
Preview · build overview · cloud-components · built Dec. 5, 2026, 11:15 p.m. UTC |
- getLog() resolves a relative base URL against the page; before, new URL() threw and every log failed behind a same-origin proxy. - Logs of an earlier run or task listing no longer fill the cache key (a position) of the current one. - "Load more tasks" lists one page at a time; a double click listed the same page twice. - Tests for these, a superseded task page, a failed listing and a listing without page arguments. - Docs and changeset name the credential-less fallback for providers without getLog(), the optional task_logs, and the redirect caveat for custom headers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
WES 1.1's TaskLog has id, system_logs and tes_uri on top of Log, no tags. The changeset is trimmed to the user-visible points. Found by the contract review of #618. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/io-schema #618 +/- ##
==================================================
+ Coverage 89.39% 89.70% +0.30%
==================================================
Files 106 106
Lines 38759 39002 +243
Branches 3185 3253 +68
==================================================
+ Hits 34650 34987 +337
+ Misses 4058 3970 -88
+ Partials 51 45 -6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
#615 landed on feat/io-schema as squash 996177e, whose tree equals b692f05, the head merged into this branch before. The conflicts come from the squash only; the resolution keeps this branch's files, so the tree is unchanged and the PR's diff narrows to its own changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
There was a problem hiding this comment.
Hey - I've found 8 issues
Sourcery assessment
Needs a human reviewer. 8 findings to address first, and log fetching now routes requests through the provider for same-origin URLs, so provider credentials can accompany them; a subclass-added header such as an API key may also survive a cross-origin redirect, exposing it beyond the service. Reverting stops the new fetch behavior, but any credential already sent cannot be recalled.
Blocking findings: packages/ecc-client-ga4gh-wes/src/providers/rest-wes-provider.ts:164, packages/ecc-client-ga4gh-wes/src/components/run/run.ts:910, packages/ecc-client-ga4gh-wes/src/components/run/run.ts:947, packages/ecc-client-ga4gh-wes/src/components/run/run.ts:946, packages/ecc-client-ga4gh-wes/src/components/run/tests/run.test.ts:495, and 3 more
From Sourcery's review of #618: - A failed task listing offers "Try again"; an empty page with a next page token still offers "Load more tasks" (both were unreachable). - A task's logs are fetched when its details are opened, not for every task of a page. - Tests wait for listed tasks rather than the loading placeholder, check the second page's tasks, the shown plain-text log and the URLs that getLog() fetches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk
Closes #616
This merges into the integration branch
feat/io-schema(never released), where the I/O Schema integration and this work belong; it builds on #615, which has merged there. Like #613 to #615 it doesn't need the Cloud Components maintainer's review to merge intofeat/io-schema; the later step fromfeat/io-schemaintodevdoes.What it does
WES 1.1 deprecates the inline
task_logsof a run log and addstask_logs_urlwithGET /runs/{run_id}/tasks(paged). Servers that send onlytask_logs_url(e.g. Conquest) showed no tasks inecc-client-ga4gh-wes-run.WesProvider): optionallistRunTasks(runId, pageSize?, pageToken?)andgetLog(url).RestWesProviderlists tasks under its own base URL (it never followstask_logs_url, so its authorization doesn't go to another address) and fetches log URLs on its own origin through itsfetch(so a subclass'sAuthorizationheader goes along), other origins without credentials, and refuses URLs that aren't HTTP(S).TaskLog(WES 1.1:id,system_logs,tes_uri) andTaskListResponse;RunLog.task_logsis optional andRunLog.task_logs_urladded.task_logs, or else the tasks listed bylistRunTasks(), 50 per page, with a "Load more tasks" button; a notice if the provider can't list tasks or listing fails; each task shows name, ID, start and end time, exit code, system logs, its TES task (tes_uri, a link only if it is an HTTP(S) URL) and its logs, fetched throughgetLog(); log values that aren't URLs are shown as given, with a hint. Listings of a superseded run are dropped.getLog()resolves a relative base URL against the page (before, every log failed behind a same-origin proxy); logs of an earlier run or task listing no longer fill the current one's cache key; "Load more tasks" lists one page at a time.getLog(), log URLs are fetched without credentials (before: the browser's default, so same-origin cookies went along); documented on the Run page and in the changeset, withgetLog()as the way to send credentials.invalidateRunLog()(from feat(wes): show run outputs with I/O Schema hints #615's stale-run-log fix) also resets the task list and cached logs, so clearing the run ID doesn't keep the previous run's tasks.listRunTasks(),getLog(),TaskLog,TaskListResponseand the changedRunLogon the Providers page; changeset (minor).How it was verified
npm testinpackages/ecc-client-ga4gh-wes): all tests pass in Chromium and Firefox at e25caa8 (686 tests, 19 files), including the provider (listRunTasksURL and paging, without page arguments, failed listing,getLogwith a base URL relative to the page,getLogwith and without the service's credentials, non-HTTP(S) refused) and the run view (inline tasks, paging fromtask_logs_url, TES URI as link or text, nolistRunTasks, listing errors, logs through the provider, non-URL log values, tasks dropped when the run ID is cleared, a superseded task page and log dropped, one page per double click, retry after a failed listing, the next page after an empty one, logs fetched only for opened tasks). WebKit can't launch on the agent host, so it runs in CI only.npm run lint(pre-commit hook: builds all packages and the docs app) passes.invalidateRunLog()and the task list) is resolved and tested (78afe0b). After feat(wes): show run outputs with I/O Schema hints #615's squash (996177e, same tree as b692f05) the merge offeat/io-schema(e9bef1a) keeps the tree unchanged.TaskLog.tagsdropped, as WES 1.1 has no such field; changeset trimmed; this body no longer cites internal decision IDs).Declined review findings
RunLog.task_logsoptional under aminorchangeset (quality and contract, low): the package is in prerelease (2.0.0-alpha), and the changeset names the migration.getLog()keeps following redirects, because log routes typically redirect to presigned storage URLs (e.g. Conquest's run-files route); browsers dropAuthorizationand cookies on cross-origin redirects, and the Providers page now tells subclasses that add other headers to scope them or overridegetLog().runLogRequestsandtaskListings(quality, low): kept: both are bumped together on a new run log, and a comment at the call explains how they relate; merging them into one token is a refactor for the split into reviewable PRs.getLog()and the component's fallback (quality, low): the fallback only fetches whatisProbablyUrlaccepts (HTTP(S)), the same rule; a shared helper can come with the split into reviewable PRs.🤖 Generated with Claude Code
https://claude.ai/code/session_011FSoqPsbB5s4NvhhYYcDJk